# Average驱动测试构建文件

test_average_sources = [
  '../../../main.cpp',
  'test_average.cpp',
  '../../../../drivers/debounce/average/average.cpp',
  '../../../../drivers/debounce/average/interface/i_average.cpp',
]

test_average = executable(
  'test_average',
  test_average_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../../../..'),
    include_directories('../../../../drivers/debounce/average'),
    include_directories('../../../../include'),
    include_directories('../../../../gen/include'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    libmcpp_deps,
    test_utils_dep,
    average_dep,
    device_tree_gen_dep,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
)

test('test_average', test_average, timeout: 300, suite: 'average')
